package com.doupi.partner.service;

import com.doupi.partner.model.PartnerRelation;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface PartnerRelationService {
	int deleteByPrimaryKey(Long id);

	int insert(PartnerRelation record);

	PartnerRelation selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(PartnerRelation record);

	int countPartnerRelation(PartnerRelation partnerRelation);

	List<PartnerRelation> queryPartnerRelations(PartnerRelation partnerRelation, RowBounds rowBounds);

	List<PartnerRelation> selectPartnerRelationForUpdate(PartnerRelation partnerRelation);

	PartnerRelation selectPartnerRelationForUpdateByPrimaryKey(Long id);

	Pagination<PartnerRelation, PartnerRelation> queryPartnerRelations(Pagination<PartnerRelation, PartnerRelation> pagination);

	int savePartnerRelation(PartnerRelation partnerRelation);

	int countPartnerRelationWithAnnotation(PartnerRelation partnerRelation);

	List<PartnerRelation> queryPartnerRelationsWithAnnotation(PartnerRelation partnerRelation, RowBounds rowBounds);

	Pagination<PartnerRelation, PartnerRelation> queryPartnerRelationsWithAnnotation(Pagination<PartnerRelation, PartnerRelation> pagination);

	PartnerRelation selectByAdministratorId(Long administratorId);

	PartnerRelation selectByMarketNumber(String marketNumber);

	PartnerRelation selectByOpenId(String openId);
}
